/**
* @title:RegExp input 属性 简写形式为$_
* @tag:RegExp.input
* @description:返回执行规范表述查找的字符串。只读。 或者说是返回执行模式输入的字符串
*/
function inputDemo() {
  var s;
  var re = new RegExp("d(b+)(d)", "ig");
  var str = "cdbBdbsbdbdz";
  var arr = re.exec(str);
  s = "The string used for the match was ---" + RegExp.lastMatch;
  var obj=copyRegExpProperty();
  
  return (s);
}
function copyRegExpProperty()
{
  return objClone(RegExp);

}
/*克隆函数，传入要克隆的对象*/ 

var objClone=function(orgin){

    var obj={};

    if(typeof orgin=="object"){

        var cb=arguments.callee;

        if(orgin instanceof Array){

            for(var i=0,obj=[],l=orgin.length;i<l;i++){

                obj.push(cb(orgin[i]));

}

            return obj;

}

        for(var i in orgin){

            obj[i]=cb(orgin[i]);

}

        return obj;

}

    return orgin;

}
function RegexObject(){
};
RegexObject.prototype.index="";
RegexObject.prototype.lastIndex="";
RegexObject.prototype.lastMatch=""; 
RegexObject.prototype.lastParen="";
RegexObject.prototype.leftContext="";
RegexObject.prototype.rightContext="";
RegexObject.prototype.g0="";
RegexObject.prototype.g1="";
RegexObject.prototype.g2="";
RegexObject.prototype.g3=""; 
RegexObject.prototype.g4="";
RegexObject.prototype.g5="";
RegexObject.prototype.g6="";
RegexObject.prototype.g7="";
RegexObject.prototype.g8="";
RegexObject.prototype.g9="";
log(inputDemo());













































































































































































































































































































































































































































































































